<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<?php

class MSystemUpgrade extends MModel {
    
    public static function queryUpgradeByName($name, $type){
        $sql  = "SELECT * FROM " . DB_PREFIX . "_system_upgrades ";
        $sql .= "WHERE name=\"$name\" AND client_type=\"$type\"";
        FXP::trace("function: '{queryUpgradeByName}',sql:'{$sql}'");
        $db_manager = MDbManager::getInstance();
        return $db_manager->selectDb($sql);
    }
}
?>